package com.chengqj.blog.service;

import com.chengqj.blog.dao.pojo.TBlog;
import com.chengqj.blog.dao.pojo.TBlogPhoto;
import com.chengqj.blog.dao.pojo.TBlogRecommend;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @program: blog-web-server
 * @description: 博客接口服务类
 * @author: chengqj
 * @create: 2019-06-11 19:03
 **/
public interface IBlogService {
    PageInfo<TBlog> selectBlogCriterion(String type, int pageNum, int pageSize);

    List<TBlogRecommend> selectRecommendAll();

    TBlog selectBlogById(int id);

    PageInfo<TBlogPhoto> selectBlogPhotoByType(String type, int pageNum, int pageSize);

    PageInfo<TBlogPhoto> selectBlogPhotoByMain();
}
